package com.rpframework.module.common.bottom.service.impl;

import com.rpframework.module.common.bottom.entity.RegionProvince;
import com.rpframework.module.common.bottom.mapper.RegionProvinceMapper;
import com.rpframework.module.common.bottom.service.RegionProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;


/**
 * 默认实现
 * Created by jump on 2016/7/4.
 */
@Service
public class RegionProvinceServiceImpl extends BaseMapperImpl<RegionProvince> implements RegionProvinceService {

    private RegionProvinceMapper mapper;

    @Autowired
    public RegionProvinceServiceImpl(RegionProvinceMapper mapper) {
        this.mapper = mapper;
        super.mapper = mapper;
    }

    @Override
    public Example getExample() {
        return new Example(RegionProvince.class);
    }

    @Override
    public List<RegionProvince> selectLinkDetails() {
        return mapper.selectLinkDetails();
    }
}
